package test;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.saurshaz.testmvc.controllers.MyCollectionJsonObject;

public class HelloServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		PrintWriter out = res.getWriter();
		res.setContentType("application/json");
		MyCollectionJsonObject myCollectionJsonObject = new MyCollectionJsonObject();
		System.out.println("Java code " + myCollectionJsonObject);
		out.println(myCollectionJsonObject);
		out.close();
	}
}